package com.icow.wms.basic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.icow.wms.basic.mapper.AgvInfoMapper;
import com.icow.wms.basic.domain.AgvInfo;
import com.icow.wms.basic.service.IAgvInfoService;

/**
 * agvInfoService业务层处理
 * 
 * @author bcs
 * @date 2024-08-26
 */
@Service
public class AgvInfoServiceImpl implements IAgvInfoService 
{
    @Autowired
    private AgvInfoMapper agvInfoMapper;

    /**
     * 查询agvInfo
     * 
     * @param id agvInfoID
     * @return agvInfo
     */
    @Override
    public AgvInfo selectAgvInfoById(Long id)
    {
        return agvInfoMapper.selectAgvInfoById(id);
    }

    /**
     * 查询agvInfo列表
     * 
     * @param agvInfo agvInfo
     * @return agvInfo
     */
    @Override
    public List<AgvInfo> selectAgvInfoList(AgvInfo agvInfo)
    {
        return agvInfoMapper.selectAgvInfoList(agvInfo);
    }

    /**
     * 新增agvInfo
     * 
     * @param agvInfo agvInfo
     * @return 结果
     */
    @Override
    public int insertAgvInfo(AgvInfo agvInfo)
    {
        return agvInfoMapper.insertAgvInfo(agvInfo);
    }

    /**
     * 修改agvInfo
     * 
     * @param agvInfo agvInfo
     * @return 结果
     */
    @Override
    public int updateAgvInfo(AgvInfo agvInfo)
    {
        return agvInfoMapper.updateAgvInfo(agvInfo);
    }

    /**
     * 批量删除agvInfo
     * 
     * @param ids 需要删除的agvInfoID
     * @return 结果
     */
    @Override
    public int deleteAgvInfoByIds(Long[] ids)
    {
        return agvInfoMapper.deleteAgvInfoByIds(ids);
    }

    /**
     * 删除agvInfo信息
     * 
     * @param id agvInfoID
     * @return 结果
     */
    @Override
    public int deleteAgvInfoById(Long id)
    {
        return agvInfoMapper.deleteAgvInfoById(id);
    }
}
